﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace Chaos.model
{
    public class victorypointtrack : INotifyPropertyChanged, stream.streamable
    {
        public event PropertyChangedEventHandler PropertyChanged;
        protected void Notify(string property)
        {
            if (this.PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }


        private ObservableCollection<victorypointmarker> m_victorypointmarkers = new ObservableCollection<victorypointmarker>();
        public ObservableCollection<victorypointmarker> Victorypointmarkers
        {
            get { return m_victorypointmarkers; }
            set
            {
                if (m_victorypointmarkers != value)
                {
                    m_victorypointmarkers = value;
                    Notify("Victorypointmarkers");
                }
            }
        }


        public virtual void serialize(stream.stream io_Stream)
        {
            io_Stream.begin("victorypointtrack")
                .serialize("Victorypointmarkers", ref m_victorypointmarkers)
            .end();
        }
    }
}
